<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>囤货详情列表</title>
</head>

<body >
<table id="tbListDetail">
</table>
<script>
var tbgrid;

tbgrid = $('#tbListDetail').datagrid({
				data:{"total":1,"rows":[{'id':'1','col1':'a12345','col2':'百丽女鞋','col3':'10','col4':'2011-8-4 12:00:00','col5':'张三','col6':'--'}]},
				singleSelect:true,
		    columns:[[
					{
					title:'货号',
					field:'col1',
					width:100,
					sortable:true
				    },
					{
					title:'商品名称',
					field:'col2',
					width:200,
					align:'left',
					formatter:function(value,rec,index){
						return '<span title='+value+'>'+value+'</span>';
					}
					},{
					title:'数量',
					field:'col3',
					width:60
					},{
					title:'囤货时间',
					field:'col4',
					width:100
					},{
					title:'操作人',
					field:'col5',
					width:60
					},{
					title:'备注',
					field:'col6',
					width:80
					},
					{
					title : '操作',
					field:'opt',
					width:80,
					formatter:function(value,rec,index){
							var str='<a href="javascript:;" class="">释放</a>';
							return str;
						}
			}
		]]
	});

</script>
</body>
</html>
